<html>
<head>
    <meta name="layout" content="freshmade">
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1>Search</h1>
                        <g:render template="/template/messageBar"/>
                    </div>
                </div>

                <g:each in="${projects}" var="p">
                    <div class="post">
                        <div class="post-title">
                            <h3><g:link action="show" id="${p.id}">${p.name}</g:link></h3>
                        </div>
                    </div>

                    <div class="comment-list">
                        <g:each in="${p.tasks}" var="task">
                            <div class="comment">
                                <div class="comment-gravatar left">
                                    <g:img file="freshmade/sample-gravatar.jpg" height="32" width="32"/>
                                </div>

                                <div class="comment-author left">
                                    ${task.createdBy.name}
                                    <div class="comment-date">Task Date: ${task.finishedDate} | Submit Date: ${task.dateCreated}</div>
                                </div>

                                <div class="clearer">&nbsp;</div>

                                <div class="comment-body">
                                    <p>${task.content}</p>
                                </div>
                            </div>
                        </g:each>
                    </div>
                </g:each>
            </div>
        </div>
    </div>
</div>
</body>
</html>